<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>
</head>
<style type="text/css">
</style>
<form class="mui-input-group">
	<div class="mui-input-row">
		<label>用户名:</label> <input type="text" value=${ loginUser.loginName }
			disabled> <span class="must">不可修改</span>
	</div>
	<div class="mui-input-row">
		<label>真实姓名:</label> <input type="text" name="realName"
			value="${ loginUser.realName }" placeholder="请输入真实姓名">
	</div>
	<div class="mui-input-row">
		<label>手机号码:</label> <input type="tel" name="mobilePhone"
			value="${ loginUser.mobilePhone }" placeholder="请输入手机号码">
	</div>
	<div class="mui-input-row">
		<label>邮箱:</label> <input type="text" name="email"
			value="${ loginUser.email }" placeholder="请输入邮箱">
	</div>
	<div class="mui-button-row">
		<a type="button" class="mui-btn mui-btn-primary submit">提交</a>
	</div>
</form>
<script type="text/javascript">
    	mui('#offCanvasContentScroll').scroll().scrollTo(0,0);
    
    	$(".mui-title").html("个人信息");
    	
	   $(".submit").on("touchstart",function(){
		    var param = $("form").serialize();
			$.post("/main/updateMyInfo",param,function(res){
				
				if(res.success){
					mui.toast("修改成功,请重新登录");
					window.location.href = "/logout";
		    	}else{
		    		mui.toast(res.message);
		    	}
			})
	   })
	   
	</script>
</html>